package com.beamfield.dao.sys;

import com.beamfield.model.NormalPayment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface NormalPaymentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NormalPayment record);

    int insertSelective(NormalPayment record);

    NormalPayment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NormalPayment record);

    int updateByPrimaryKey(NormalPayment record);

    List<NormalPayment> selectPage(@Param("beamId") long beamId, @Param("offset") String offset, @Param("limit") String limit, @Param("name") String name,@Param("paymentDate") String paymentDate);

    long countPage(@Param("beamId") long beamId, @Param("name") String name,@Param("paymentDate")  String paymentDate);

    int updateBeamIdByEcode(@Param("ecode") String ecode, @Param("beamId") String acBemaId);
}